package zz.extjs.vo;

import java.util.*;

public class Member {
    
    private String username;
    private String password;
    private List errors;
    
    public void setUsername(String username) {
        
        this.username=username;
    }
    
    public void setPassword(String password) {
        
        this.password=password;
    }
    
    public void setErrors(List errors) {
        
        this.errors=errors;
    }
    
    public String getUsername() {
        
        return this.username;
    }
    
    public String getPassword() {
        
        return this.password;
    }
    
    public List getErrors() {
        
        return this.errors;
    }
    
    public boolean isEmpty() {
        
        boolean iserror=false;
        if(this.username==null || "".equals(this.username)) {
            
            iserror=true;
            this.errors.add("用户名不能为空！");
        }
        if(this.password==null || "".equals(this.password)) {
            
            iserror=true;
            this.errors.add("密码不能为空！");
        }
        return iserror;
    }
    
}
